package gameUI;

import javax.swing.JFrame;

public class GameMain extends JFrame{
	
	public GameMain() {
		setTitle("飞机大战");
		setSize(512,768);
		setLocationRelativeTo(null);
//		setResizable(false);
		setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
	}

	public static void main(String[] args) {
		GameMain frame = new GameMain();
		
		GamePanel panel = new GamePanel();
		
		frame.add(panel);
		
		panel.start();
		
		frame.setVisible(true);
	}

}
